package com.yg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yg.config.result.R;
import com.yg.entity.readAndWriteTemplates.TeacherPracticeRead;
import com.yg.entity.singleEntity.TeacherPractice;

import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;

/**
 * <p>
 * 对应sheet04，此表是教师实践锻炼表
注意！此表的id和教师表的id是一个id 服务类
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherPracticeService extends IService<TeacherPractice> {

    R selectAllTeacherPracticeInfo(int current, int limit, String vipByJwtToken, String teacherIdByJwtToken);

    //读取
    R readExcel(FileInputStream fileInputStream);

    R writeExcel(HttpServletResponse response, TeacherPracticeRead condition);

    R teacherConditionalQuery(String vipByJwtToken,String teacherCondition,int current ,int limit);

    R updateTeacherInfo(String teacherJson);

    R deleteTeacherById(String id);

    R insertTeacherPractice(TeacherPractice teacherPractice);
}
